package com.api.shopapi.service.impl;

import com.api.shopapi.entity.DishesPlanMorning;
import com.api.shopapi.mapper.DishesPlanMorningMapper;
import com.api.shopapi.service.DishesPlanMorningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DishesPlanMorningServiceImplOne")
public class DishesPlanMorningServiceImplOne implements DishesPlanMorningService {

    @Autowired
    private DishesPlanMorningMapper dishesPlanMorningMapper;

    @Override
    public
    int insert(DishesPlanMorning dishesPlanMorning){
        return dishesPlanMorningMapper.insert(dishesPlanMorning);
    }

    @Override
    public
    int delete(String dishesPlanMorningCode){
        return dishesPlanMorningMapper.delete(dishesPlanMorningCode);
    }

    @Override
    public
    int update( DishesPlanMorning dishesPlanMorning){
        return dishesPlanMorningMapper.update(dishesPlanMorning);
    }

    @Override
    public
    DishesPlanMorning getByDishesPlanMorningCode(String dishesPlanMorningCode){
        return dishesPlanMorningMapper.getByDishesPlanMorningCode(dishesPlanMorningCode);
    }

    @Override
    public
    List<DishesPlanMorning> ListByDishesPlanCode(String dishesPlanCode){
        return dishesPlanMorningMapper.ListByDishesPlanCode(dishesPlanCode);
    }

}
